package org.smile.homework01.kevin.FileMenu;

public abstract class MenuComponent {   //目录组件
    protected String name;
    protected int level;
//增加目录
    public void add(MenuComponent menuComponent) {}
//移除目录
    public void remove(MenuComponent menuComponent) {}
//获取子目录
    public MenuComponent getChild(int index){
        return null;
    }
//目录名称
    public String getname(){return name;}

    public abstract void print();
}
